package com.phiture.erp.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author YH
 * @date 2025/4/2
 */

@Getter
@AllArgsConstructor
public enum ErpMaterialStatusEnum {
    OPEN(0, "开启"),
    CLOSE(1, "关闭"),
;
    private final Integer status;
    private final String desc;

    public static final Map<Integer, String> MATERIAL_STATUS_MAP = new HashMap<>(2);
    static {
        for (ErpMaterialStatusEnum statusEnum : ErpMaterialStatusEnum.values()) {
            MATERIAL_STATUS_MAP.put(statusEnum.status, statusEnum.desc);
        }
    }
}
